package com.atjinggu.jinggumail.cart.service;

import com.atjinggu.jinggumail.cart.vo.Cart;
import com.atjinggu.jinggumail.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @author jingming
 * @Type CartService.java
 * @Desc
 * @date 2021/3/5 16:28
 */
public interface CartService {
    CartItem addToCart(String skuId, Integer count) throws ExecutionException, InterruptedException;

    CartItem getCartSkuInfo(String skuId);

    Cart getCart() throws ExecutionException, InterruptedException;

    void checkItem(String skuId, Integer check);

    void changeItemCount(String skuId, Integer num);

    void deleteItem(String skuId);

    List<CartItem> OrderItemList();

}